package com.gc.server.service;

import com.gc.server.entity.ImgOrderEntity;
import com.gc.server.entity.ImgOrderItemEntity;
import com.gc.server.vo.ImgOrderVo;
import com.gc.server.vo.TodoVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;

/**
 * 线下报单Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Mar 12 15:17:51 CST 2020
 */
public interface ImgOrderService extends BaseService<ImgOrderEntity> {


    List<ImgOrderVo> queryListVo(ImgOrderVo imgOrderVo);

    ImgOrderVo getVo(Long id);


    /***********BACK***********/

    /***********API***********/

    ImgOrderEntity commit(Long userId, String img, String mobile, Long cusId, String remark, BigDecimal point,BigDecimal money,Long pointType,Long[] ids,Integer[] numbers);

    ImgOrderEntity pass(Long userId,Long orderId);

    ImgOrderEntity refuse(Long userId,Long orderId);

//    List<ImgOrderVo> listByUser(Long userId);

    List<ImgOrderVo> listByTop(Long userId);

    List<ImgOrderVo> listByUserId(Long userId);

    ImgOrderEntity bind(Long userId, String mobile, Long orderId);

    List<ImgOrderItemEntity> findItems(Long id);

    ImgOrderEntity check(ImgOrderEntity order);


    /**
     * 下载并且统计
     * @param todoVo
     */
    void downLoad(HttpServletResponse response, List<ImgOrderVo> list);

}
